package com.opensource.datamodel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 投资记录表
 * @TableName b_bid_info
 */
@TableName(value ="b_bid_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BidInfoEntity implements Serializable {
    /**
     * 投标记录ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 产品ID
     */
    private Integer productId;

    /**
     * 用户ID
     */
    private Integer uid;

    /**
     * 投标金额
     */
    private BigDecimal bidMoney;

    /**
     * 投标时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")

    private Date bidTime;

    /**
     * 投标状态
     */
    private Integer bidStatus;

    /**
     * 删除标志（0代表未删除，1代表已删除）
     */
    private Integer delFlag;
    //手机号码
    @TableField(exist = false)
    private String phone;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}